package aop;

import org.aspectj.lang.ProceedingJoinPoint;

public class AspectAuth {

	public void before(){
		
		System.out.println("权限验证之前");
	}
	
	public void after(){
		
		System.out.println("权限验证之后");
	}
	
	public Object around(ProceedingJoinPoint joinPoint){
		
		System.out.println("around开始");
		Object obj = null;
		try {
			obj = joinPoint.proceed();
		} catch (Throwable e) {
			e.printStackTrace();
		}
		System.out.println("around结束");
		return obj;
	}
}
